<admintpl file="header" />
</head>
<body>
	<div class="wrap">
		<ul class="nav nav-tabs">
			<!--<li><a href="{:U('indexadmin/index')}">{:L('USER_INDEXADMIN_INDEX')}</a></li>-->
			<li><a href="{:U('indexadmin/risk_audit')}">风控审核</a></li>
			<li class="active"><a>我的客户</a></li>
			<li><a href="{:U('indexadmin/add')}">添加推广客户</a></li>
		</ul>
		<php>$group=get_groups_admin_user();</php>
		<form class="well form-search" method="post" action="{:U('Indexadmin/myuser')}" style='line-height: 46px;'>
			手机号码： 
			<input type="text" name="mobile" style="width: 200px;" value="{:I('request.mobile')}" placeholder="请输入手机号码">
			姓名： 
			<input type="text" name="name" style="width: 200px;" value="{:I('request.name')}" placeholder="姓名">
			身份证：<input type="text" name="identity" style="width: 200px;" value="{:I('request.identity')}" placeholder="身份证">
			注册日期：<input class="js-datetime" type="text" name="starts" style="width: 200px;" value="{:I('request.starts')}" placeholder="起始时间">
			<input class="js-datetime" type="text" name="ends" style="width: 200px;" value="{:I('request.ends')}" placeholder="结束时间">
			<br/>
			资料审核状态：<select name="type">
				<option value="">全部</option>
				<php>$tpl_selected=I('request.type')=='0'?"selected":"";</php>
				<option {$tpl_selected} value="0">待绑卡</option>
				<php>$tpl_selected=I('request.type')=='1'?"selected":"";</php>
				<option {$tpl_selected} value="1">上传证件照</option>
				<php>$tpl_selected=I('request.type')=='2'?"selected":"";</php>
				<option {$tpl_selected} value="2">待审核</option>
				<php>$tpl_selected=I('request.type')=='3'?"selected":"";</php>
				<option {$tpl_selected} value="3">学信认证</option>
				<php>$tpl_selected=I('request.type')=='4'?"selected":"";</php>
				<option {$tpl_selected} value="4">填写联系信息</option>
				<php>$tpl_selected=I('request.type')=='5'?"selected":"";</php>
				<option {$tpl_selected} value="5">信息填写完成</option>
				<php>$tpl_selected=I('request.type')=='8'?"selected":"";</php>
				<option {$tpl_selected} value="8">系统审核不通过</option>
			</select>
			借款状态：<select name="type_borr">
				<option value="">全部</option>
				<php>$tpl_selected=I('request.type_borr')=='0'?"selected":"";</php>
				<option {$tpl_selected} value="0">待申请借款</option>
				<php>$tpl_selected=I('request.type_borr')=='1'?"selected":"";</php>
				<option {$tpl_selected} value="1">待填写运营商信息</option>
				<php>$tpl_selected=I('request.type_borr')=='2'?"selected":"";</php>
				<option {$tpl_selected} value="2">借款中</option>
				<php>$tpl_selected=I('request.type_borr')=='3'?"selected":"";</php>
				<option {$tpl_selected} value="3">不通过</option>
			</select>
			<input type="submit" class="btn btn-primary" value="搜索" />
			<a class="btn btn-danger" href="{:U('Indexadmin/index')}">清空</a>
			<!--<a class="btn btn-primary" id='export_btn' href="{:U('indexadmin/export_myuser',array('wheres'=>$wheres_str))}" >导出</a>-->
		</form>
		<form method="post" class="js-ajax-form">
			<table class="table table-hover table-bordered">
				<thead>
					<tr>
						<th  align="center">{:L('MOBILE')}</th>
						<th>{:L('NICENAME')}</th>
						<th>{:L('USER_INFO')}</th>
						<th>{:L('LOAN_INFO')}</th>
						<th>{:L('IDENTITY')}</th>
						<th>{:L('REGISTRATION_TIME')}</th>
						<th>{:L('LAST_LOGIN_TIME')}</th>
						<!-- <th>实名认证状态</th> -->
						<th>资料认证状态</th>
						<th>{:L('STATUS')}</th>
						<th>认证不通过原因</th>
						<th align="center">{:L('ACTIONS')}</th>
					</tr>
				</thead>
				<tbody>
					<php>$user_statuses=array("0"=>L('USER_STATUS_BLOCKED'),"1"=>L('USER_STATUS_ACTIVATED'),"2"=>L('USER_STATUS_UNVERIFIED'));</php>
					<foreach name="list" item="vo">
					<tr>
						<td align="center">{$vo['user_login']?$vo['user_login']:($vo['mobile']?$vo['mobile']:L('THIRD_PARTY_USER'))}</td>
						<php>
						if($group==3 || $group==8 || $group==10 || $group==6 || $group==13){
							if($vo['account_status']==1){
								$name=mb_substr($vo['name'],0,1,'utf-8').'**';
							}else{
								$name=$vo['name'];
							}
						}else{
							$name=$vo['name'];
						}
						</php>
						<td>{$name|default=L('NOT_FILLED')}</td>
						<td>
							<if condition="($vo.type eq 0)"> 待绑卡
							<elseif condition="$vo.type eq 1"/>上传证件照
							<elseif condition="$vo.type eq 2"/>待审核
							<elseif condition="$vo.type eq 3"/>学信认证
							<elseif condition="$vo.type eq 4"/>填写联系信息
							<elseif condition="$vo.type eq 5" /> 信息填写完成
							<elseif condition="$vo.type eq 8" />系统审核不通过
							</if></td>
						<td><if condition="($vo.type_borr eq 0)">待申请借款
							<elseif condition="$vo.type_borr eq 1"/>待填写运营商
							<elseif condition="$vo.type_borr eq 2"/>借款中
							<elseif condition="$vo.type_borr eq 3"/>审核不通过
							</if></td>
						<php>$iden=substr($vo['identity'],6,8)</php>
						<td>{$iden}</td>
						<td>{$vo.crtime}</td>
						<td>{$vo.last_login_time}</td>
						<php>$ds=array('0'=>'<span style="color:red">未认证</span>','1'=>'<span style="color:green">已认证</span>','2'=>'<span style="color:red">认证未通过</span>','3'=>'<span style="color:red">暂时不需要</span>')</php>
						<!-- <td>{$ds[$vo['silver_stutas']]}</td> -->
						<td>{$ds[$vo['account_status']]}</td>
						<td>{$user_statuses[$vo['user_status']]}</td>
						<td>{$unapproved[$vo['unapproved']]}</td>
						<td align="center">
						<if condition="$send_sms[$vo['mobile']]">
						<else/>
						<a class="js-ajax-dialog-btn" data-msg="确定 {$vo['name']} 发送初审 通过 短信通知?" href="{:U('indexadmin/first_examine',array('user_id'=>$vo['id'],'type'=>1))}">初审通知通过</a>
						<a class="js-ajax-dialog-btn" data-msg="确定 {$vo['name']} 发送初审 未通过 短信通知?" href="{:U('indexadmin/first_examine',array('user_id'=>$vo['id'],'type'=>0))}">初审通知失败</a>
						<br/>
						</if>
							<neq name="vo.account_status" value="1">
								<if condition="($vo.silver_stutas eq 0)">
								<!-- |<a href="{:U('indexadmin/examine',array('id'=>$vo['id']))}">实名认证</a> -->
								</if>
								<if condition="($vo.silver_stutas eq 1)">
								
								</if>
								<a href="{:U('indexadmin/info',array('id'=>$vo['id']))}" >{:L('MOD')}</a>
								|<a href="{:U('indexadmin/see',array('id'=>$vo['id'],'from_type'=>3))}">客户详情</a>
								|<a href="{:U('indexadmin/contact_exam',array('id'=>$vo['id']))}">资料认证审核</a>
							</neq>
							<if condition="($vo.type_borr eq 2)">
							<br />|<a href="{:U('indexadmin/jum_ban',array('id'=>$vo['id'],'type'=>1))}" class="js-ajax-dialog-btn" data-msg="确定 {$vo['name']} 重新验证运营商?">重新验证运营商</a>
							</if>
						</td>
					</tr>
					</foreach>
				</tbody>
			</table>
			<div class="pagination">{$page}</div>
		</form>
	</div>
	<script src="__PUBLIC__/js/common.js"></script>
</body>
</html>